Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: remove pathSteps property from TimesStopsOutput #8624

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

emersion
Copy link
Member

@emersion emersion commented Aug 29, 2024

The pathSteps property is unused for the output table:

const objectToUse = tableType === TableType.Input ? pathStep : op;

It's coming from the store, so it's left with whatever waypoints the last edited train got saved with.

Instead, the TimesStopsOutput component expects allWaypoints with arrival, onStopSignal, stopFor and theoreticalMargin already filled in.

The pathSteps property is unused for the output table:
https://github.com/OpenRailAssociation/osrd/blob/87418f172380fc2f187f8fd84b9f0d95ee1e8d88/front/src/modules/timesStops/helpers/utils.ts#L55

Instead, the TimesStopsOutput component expects allWaypoints with
arrival, onStopSignal, stopFor and theoreticalMargin already filled
in.
@emersion emersion requested a review from a team as a code owner August 29, 2024 13:56
Copy link
Contributor

@achrafmohye achrafmohye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@emersion emersion added this pull request to the merge queue Aug 30, 2024
Merged via the queue into dev with commit befdbe1 Aug 30, 2024
22 checks passed
@emersion emersion deleted the emr/drop-times-stop-output-path-steps branch August 30, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants